package com.menhai.personmanagement.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.menhai.personmanagement.entity.MbReportCard;
import com.menhai.personmanagement.entity.ReportHealthcheck;
import com.menhai.personmanagement.entity.vo.HealthCheckVo;

/**
 * <p>
 * 报卡管理表 Mapper 接口
 * </p>
 *
 * @author shikun
 * @since 2021-11-25
 */
@Mapper
public interface HealthCheckMapper extends BaseMapper<MbReportCard>{

	/**
	 * insert健康体检
	 * @param mbReportCard
	 * @return int
	 */
	public int insert(ReportHealthcheck reportHealthcheck);
	
	
	/**
	 * update
	 * 
	 * @author longenyue
	 * @date 2022/05/06 10:52
	 * @param reportHealthcheck
	 * @return Integer
	 */
	public Integer update(ReportHealthcheck reportHealthcheck);
	
	
	/**
	 * 查询健康体检信息列表
	 * @param page
	 * @param healthCheckVo
	 * @return
	 */
	IPage<HealthCheckVo> getHealthCheckInfoList(@Param("page")Page<HealthCheckVo> page, @Param("healthCheckVo") HealthCheckVo healthCheckVo);

	/**
	 * 根据体检id查询信息
	 * @param inspectphysicalId
	 * @return
	 */
	public ReportHealthcheck getOneByInspectphysicalId(@Param("inspectphysicalId")String inspectphysicalId);
	
	
	/**
	 * 获取责任医生列表
	 * @param hosnum
	 * @return
	 */
	public List<Map<String,Object>> getZedocList(@Param("hosnum")String hosnum);
	
	
	/**
	 * 获取导出信息
	 * @param id
	 * @return
	 */
	public Map<String,String> getExportInfo(@Param("id")String id);
	
	
	/**
	 * 获取导出住院信息
	 * @param type
	 * @return
	 */
	public List<Map<String,Object>> getExportHosInfo(@Param("type")String type,@Param("id")String id);
	
	
	/**
	 * 获取导出用药信息
	 * @param type
	 * @return
	 */
	public List<Map<String,Object>> getExportMedInfo(@Param("id")String id);
	
	
	/**
	 * 获取导出疫苗信息
	 * @param type
	 * @return
	 */
	public List<Map<String,Object>> getExportVaccineInfo(@Param("id")String id);
	
	
	/**
	 * 左侧树
	 * @param hosnum
	 * @return
	 */
	public List<Map<String,Object>> geteCunRenShu(@Param("hosnum")String hosnum);


	public List getDataByPopulationId(int id);
}
